package ace.module.product.core.impl.dao.repository;


import ace.cmp.spring.data.jdbc.querydsl.core.repository.QuerydslJdbcBaseRepository;
import ace.module.product.core.impl.constant.ProductCoreConstant;
import ace.module.product.core.impl.dao.entity.PmsProductStatistic;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.stereotype.Repository;

/**
 * 商品统计数据,非实时 repository.
 *
 * @author Caspar
 */
@DS(ProductCoreConstant.DEFAULT_DATA_SOURCE_NAME)
@Repository
public interface PmsProductStatisticRepository extends QuerydslJdbcBaseRepository<PmsProductStatistic,Long> {

  PmsProductStatistic findByPmsAppIdAndProductIdAndDeleteFlag(Long pmsAppId, Long productId, Long deleteFlag);
}